const { DataTypes } = require('../utils/sequelize');

const StudentCourse = {
  name: "StudentCourse",
  data: {
    id: {
      type: DataTypes.NUMBER,
      allowNull: false,       //是否能为空
      primaryKey: true,       //主键
      autoIncrement: true,    //是否自增
    },
    courseId: {
      type: DataTypes.STRING,
      allowNull: false
    },
    studentId: {
      type: DataTypes.STRING,
      allowNull: false
    },
    status: {
      type: DataTypes.NUMBER,
      allowNull: false
    }
  },
  options: {
      tableName: 'student_course_tb'
  }
}
module.exports = StudentCourse